<?php if ($msg != "default") echo $msg_output; ?>
<?php echo previous_link($section,$action,$go,$modal_window); ?>
<?php if ($modal_window != "true") { ?>
<?php if ($id == "default") { ?>
<p><a href="#cd">Course Description</a> | <a href="#cpd">Course Project Description</a> | <a href="#map">Course Project Map</a><br />
<a href="#lo">Course Learning Outcomes</a> | <a href="#materials">Course Materials</a> | <a href="#titles">Module Overviews and Associated Titles</a></p>
<?php }
if ($id != "default") { ?>
<div class="stacked"><span class="icon"><img src="images/arrow_left.png" border="0" align="absmiddle" /></span><a href="index.php?section=view_proposal&amp;action=<?php echo $action; ?>&amp;cid=<?php echo $cid; ?>">Back to Proposal Overview</a></dive>
<?php } }
if (($row_courses['proposal_complete'] == "Y") && ($modal_window != "true") && ($id == "default") && (($row_user['userLevel'] == "3") && ($row_courses['did'] == $row_user['id']) || ($row_user['userLevel'] <= "2"))) { ?>
<div class="stacked"><span class="icon"><img src="images/printer.png" border="0" align="absmiddle" /></span><a id="modal_window_link" href="export.php?action=print&amp;cid=<?php echo $cid; ?>&amp;go=proposal" title="Print the Complete Proposal">Print the Complete Proposal</a></div>
<div class="stacked"><span class="icon"><img src="images/page_white_word.png" border="0" align="absmiddle" /></span><a href="export.php?section=default&amp;action=export&amp;go=proposal&amp;cid=<?php echo $cid; ?>" title="Print the Complete Proposal">Export the Complete Proposal to Word</a></div>
<?php }
if ((($row_user['userLevel'] == "2") && ($row_courses['did'] == $row_user['id'])) || (($row_user['userLevel'] == "3") && ($row_courses['aid'] == $row_user['id'])) || ($row_user['userLevel'] <= "2")) 
{
if (($dbTable == "default") || ($dbTable == "course_description")) include (PROPOSAL.'display_cd.sec.php'); 
if (($dbTable == "default") || ($dbTable == "course_project")) include (PROPOSAL.'display_cpd.sec.php'); 
if ($dbTable == "default") {
	$query_pd = "SELECT * FROM project_deliverable WHERE cid='$cid'";
	$pd = mysql_query($query_pd, $connection) or die(mysql_error());
	$row_pd = mysql_fetch_assoc($pd);
	$totalRows_pd = mysql_num_rows($pd);
	if ($totalRows_pd > 0) { 
	include (PROPOSAL.'display_map.sec.php'); 
	include (PROPOSAL.'display_lo.sec.php'); 
	}
	else { echo "<a name=\"map\"></a><h2>Course Project Map</h2><div class='error_msg'>No Project Deliverables have been entered. "; if ($row_user['userLevel'] == "3") { if ($totalRows_cd > 0) echo "<a href='index.php?section=proj_deliv&action=add&cid=".$cid."'>Add one?</a>"; else echo "Please <a href='index.php?section=cpd&action=add&cid=".$cid."'>add the Course Project Description</a> first."; } echo "</div>"; }
  	}
if ($dbTable == "project_deliverable") include (PROPOSAL.'display_proj_deliv.sec.php');
if ($dbTable == "learning_outcomes") include (PROPOSAL.'display_lo.sec.php');
if ($dbTable == "default") include (PROPOSAL.'display_materials.sec.php');
if ($dbTable == "default") include (PROPOSAL.'display_titles.sec.php');
}
else { echo "<div class='error_msg'>Sorry, this course overview can only be accessed by the assigned "; if ($row_user['userLevel'] == "2") echo "Content Expert"; else echo "Insructional Designer"; echo ".</div>"; }
?>

